package com.mtsmda.webServices.documentStyle.javapoint;

import javax.jws.WebService;

@WebService(endpointInterface = "com.mtsmda.webServices.documentStyle.javapoint.GetAcronymI")
public class GetAcronymImpl implements GetAcronymI {

	public String getAcronym(String text) {
		StringBuilder acronym = new StringBuilder();

		String[] split = text.split("[\\s]");
		for (String s : split) {
			if (s.length() > 1) {
				acronym.append(s.toUpperCase().charAt(0)).append(".");
			}
		}

		return acronym.toString();
	}

}